<script>
	$(function(){
		//通过ajax获取购物车数量
		$.post("${ctx}/customer/shopCar/getAjaxCount",function(data){
			console.log(data.count);
			$("#shopNum").text(data.count);
		})
		
	})
</script>


<div class="header_middle clear">
	<div class="container">
		<div class="logo">
			<a href="${ctx}/customer/home">
				<img src="${ctx}/images/index_logo.jpg" alt="index_logo" />
			</a>
		</div>
		<div class="search">
			<form action="${ctx}/customer/goods/showGoodsList">
				<input type="text"placeholder="请输入关键字" />
				<button type="submit">搜索</button>
			</form>
			<ul>
				<li><a href="pro_details.html">男沐浴露</a><span></span></li>					
				<li><a href="shop_list.html">力士沐浴露 </a><span></span></li>			
				<li><a href="shop_list.html">沐浴露家庭装 </a><span></span></li>
				<li><a href="shop_list.html">多芬沐浴露  </a><span></span></li>
				<li><a href="shop_list.html">六神沐浴露</a><span></span></li>
				<li><a href="shop_list.html">阿迪达斯沐浴</a></li>
			</ul>
		</div>
		<div class="shop">
			<a href="${ctx}/customer/shopCar/myShopCar">
				<img src="${ctx}/images/index_header05.jpg" alt="/index_header05" />
				我的购物车<span class="badge" id="shopNum">0</span>
			</a>
		</div>
	</div>	
</div>